import request from '@/utils/request';
import qs from 'qs';
//获取日记列表
export function getDiary(params) {
    return request(`/diary/getDiary`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}
//增加日记列表
export function writeDiary(params) {
    return request(`/diary/writeDiary`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}

//编辑日记
export function update(params) {
    return request(`/diary/updateDiary`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}